%{
#include "list.tab.h"
extern int yylval;
%}

%%
[0-9]+ { yylval = atoi(yytext); return NUMBER; }
[ \t\n] ;
"[" return LPAREN;
"]" return RPAREN;
"," return COMMA;
"$" return 0;
%%
